import http from "../http";

export default {
    // 今日车流量对比数据
    getTodayTrafficFlow(id, params) {
        return http.get(`/health_monitoring/queryTodayTrafficFlowContrast`, {
            // headers: {'token': 'e59026dd-8d05-4ed9-8da1-1d31aadfaf20','app-key': '5ab089ca77014874868482ebb85b424b'}
            headers: {
                'app-key': params.appkey,
                token: params.token
            },
            params: {
                bridgeId: id
            }
        });
    },

    // 今日超载统计数据
    getOverLoadData(id, params) {
        return http.get(`/traffic/countTodayWeightType`, {
            // headers: {'token': 'e59026dd-8d05-4ed9-8da1-1d31aadfaf20','app-key': '5ab089ca77014874868482ebb85b424b'}
            headers: {
                'app-key': params.appkey,
                token: params.token
            },
            params: {
                bridgeId: id
            }
        });
    },
    // 实时监测
    getRealMonitorData(id, params) {
        return http.get(`/real_time_load/queryUpToDateById`, {
            // headers: {'token': 'e59026dd-8d05-4ed9-8da1-1d31aadfaf20','app-key': '5ab089ca77014874868482ebb85b424b'}
            headers: {
                'app-key': params.appkey,
                token: params.token
            },
            params: {
                bridgeId: id
            }
        });
    },
};
